using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
namespace Tongiao.Entity
{
                

     public class Tg_CategoryEntity:AF_ORM.CORE.BaseEntity
    {
         public Tg_CategoryEntity()
         {
             tableName = "Tg_Category";


			 fieldInfos.Add(new FieldInfo("Tg_Category","CatName","CatName","string",512,false,true,true,false,"","",""));
			 fieldInfos.Add(new FieldInfo("Tg_Category","CatType","CatType","string",5,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("Tg_Category","CreatedBy","CreatedBy","string",512,false,true,true,false,"","",""));
			 fieldInfos.Add(new FieldInfo("Tg_Category","CreatedDate","CreatedDate","DateTime",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("Tg_Category","Id","Id","Guid",0,true,false,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("Tg_Category","OrderIndex","OrderIndex","int",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("Tg_Category","Parent","Parent","Guid",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("Tg_Category","UpdatedBy","UpdatedBy","string",512,false,true,true,false,"","",""));
			 fieldInfos.Add(new FieldInfo("Tg_Category","UpdatedDate","UpdatedDate","DateTime",0,false,true,false,false,"","",""));
         }
       //properties
                    
		 protected string m_CatName;
		 protected string m_CatType;
		 protected string m_CreatedBy;
		 protected DateTime m_CreatedDate;
		 protected Guid m_Id;
		 protected int m_OrderIndex;
		 protected Guid m_Parent;
		 protected string m_UpdatedBy;
		 protected DateTime m_UpdatedDate;

		 public string CatName

          { 
                get { 
                    return m_CatName;}

                set{m_CatName=value;

                    GetField("CatName").Set();
                    GetField("CatName").IsNull=(value == null);           
                    }
          }
		 public string CatType

          { 
                get { 
                    return m_CatType;}

                set{m_CatType=value;

                    GetField("CatType").Set();
                    GetField("CatType").IsNull=(value == null);           
                    }
          }
		 public string CreatedBy

          { 
                get { 
                    return m_CreatedBy;}

                set{m_CreatedBy=value;

                    GetField("CreatedBy").Set();
                    GetField("CreatedBy").IsNull=(value == null);           
                    }
          }
		 public DateTime CreatedDate

          { 
                get { 
                    return m_CreatedDate;}

                set{m_CreatedDate=value;

                    GetField("CreatedDate").Set();
                    GetField("CreatedDate").IsNull=(value == null);           
                    }
          }
		 public Guid Id

          { 
                get { 
                    return m_Id;}

                set{m_Id=value;

                    GetField("Id").Set();
                    GetField("Id").IsNull=(value == null);           
                    }
          }
		 public int OrderIndex

          { 
                get { 
                    return m_OrderIndex;}

                set{m_OrderIndex=value;

                    GetField("OrderIndex").Set();
                    GetField("OrderIndex").IsNull=(value == null);           
                    }
          }
		 public Guid Parent

          { 
                get { 
                    return m_Parent;}

                set{m_Parent=value;

                    GetField("Parent").Set();
                    GetField("Parent").IsNull=(value == null);           
                    }
          }
		 public string UpdatedBy

          { 
                get { 
                    return m_UpdatedBy;}

                set{m_UpdatedBy=value;

                    GetField("UpdatedBy").Set();
                    GetField("UpdatedBy").IsNull=(value == null);           
                    }
          }
		 public DateTime UpdatedDate

          { 
                get { 
                    return m_UpdatedDate;}

                set{m_UpdatedDate=value;

                    GetField("UpdatedDate").Set();
                    GetField("UpdatedDate").IsNull=(value == null);           
                    }
          }

}
}
